From 629efff4aef5ec79636b3f0b3792bfcd1b93a336 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Sun, 8 Oct 2006 18:27:54 -0600 Subject: [PATCH] [IA64] __read_mostly Signed-off-by: Isaku Yamahata --- xen/arch/ia64/xen/xen.lds.S | 3 +++ xen/include/asm-ia64/linux-xen/asm/cache.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/ia64/xen/xen.lds.S b/xen/arch/ia64/xen/xen.lds.S index 3884f80679..96cd1ce14f 100644 --- a/xen/arch/ia64/xen/xen.lds.S +++ b/xen/arch/ia64/xen/xen.lds.S @@ -173,6 +173,9 @@ SECTIONS * kernel data */ + .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) + { *(.data.read_mostly) } + .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) { *(.data.cacheline_aligned) } diff --git a/xen/include/asm-ia64/linux-xen/asm/cache.h b/xen/include/asm-ia64/linux-xen/asm/cache.h index 0db88a7044..542d2e23e4 100644 --- a/xen/include/asm-ia64/linux-xen/asm/cache.h +++ b/xen/include/asm-ia64/linux-xen/asm/cache.h @@ -32,6 +32,6 @@ #endif #endif -#define __read_mostly +#define __read_mostly __attribute__((__section__(".data.read_mostly"))) #endif /* _ASM_IA64_CACHE_H */ -- 2.30.2